<html>
<head>
	<meta charset="UTF-8">
	<title>登录</title>
	<script type="text/javascript">
	//验证码刷新功能
	function changecode(){
		var obj = document.getElementById('codeimg');
		obj.src="http://localhost/thinkphp/index.php/Home/Index/code?id="+Math.random();
	}
	</script>
</head>
<body>

<!-- <form action="__URL__/check" method="post">
名字: <input type="text" name="name">
年龄: <input type="text" name="age">
<input type="submit" value="提交">
</form> -->

<form   action="__URL__/checklogin" method="post">
验证码：<input id="code" name="code" type="text" />
<img  id="codeimg" src="__URL__/code" title="看不清，换一张" onclick="changecode()" style="cursor:pointer;"><br>
<input type="submit" name="dl"  value="登录" style="font-size: 15px;" />
</form>
</body>
</html>